{extend name="index@common/base"/} 
{block name="style"}
{/block} {block name="body"}
<div class="layui-body layui-tab-content index-body" id="cont">
	<div class="park-navigation">
		<div class="navigation-icon">
			<i class="fa {$breadCrumb[0]['icon']}"></i>
		</div>
		<div class="navigation-menu">
			<h2>{$breadCrumb[0]['title']}</h2>
			{if isset($breadCrumb[1])}
			<p>{$breadCrumb[0]['remark']}</p>
			{/if}
		</div>
	</div>
	<div class="park-content">
		<div class="content-title">
			<div class="title col-8">
				<h3>{$breadCrumb[1]['title']}</h3>
				<form class="layui-form" action="{:url('basic/store/search')}" onsubmit="return false;">
					<button class="search-btn" lay-submit lay-filter="search"><img src="__STATIC__/img/base/topsearch01.png"></button>
					<select name="enterpriseId">
						<option value="">单位</option>
						{volist name="enterpriseList" id="item"}
						<option value="{$key}">{$item}</option>
						{/volist}
					</select>
					<input class="search-input" name="keyword" type="text" placeholder="储物仓库"  autocomplete="off">
				</form>	
			</div>
			<div class="tool col-2">
				<button id="add" data-url="{:url('basic/store/add')}"><i class="fa fa-plus"></i></button>
				<button id="reload"><i class="fa fa-refresh"></i></button>
			</div>
		</div>
		<table class="layui-hide" id="store" lay-filter="store" data-url="{:url('basic/store/index')}"></table>
	</div>
</div>
{/block}
{block name="script"}

<script type="text/javascript" src="__JS__/basic/store.js"></script>

<script  type="text/html" id="storeName" >
	<a  class="name" data-url="{:url('basic/store/setBuilding')}?position={{d.latitudeLongitude}}&storeId={{d.id}}" style="color:#1e9fff">{{d.storeName}}</a>

</script>

<script type="text/html" id="enterpriseTemplate">
	{{# if (d.enterpriseId == 0){ }}
	<span>管委会</span>
	{{# } }}
	{{# if (d.enterprise){ }}
	<span>{{d.enterprise.fullName}}</span>
	{{# } }}
</script>

<script type="text/html" id="chargePerson">
	{{# if (d.staff){ }}
		<p><span>{{d.staff.staffName}}</span></p>
		<p><span>电话:{{d.staff.tel}}</span></p>
		<p><span>手机:{{d.staff.mobile}}</span></p>
	{{# } }}
</script>

<script type="text/html" id="toolDemo">
	<div>
		<a class="layui-btn btn-edit" lay-event="edit" id="edit_{{d.id}}" data-url="{:url('basic/store/edit')}?storeId={{d.id}}"><i class="fa fa-pencil"></i></a>
  		<a class="layui-btn btn-del" lay-event="del"  id="del_{{d.id}}" data-url="{:url('basic/store/del')}?storeId={{d.id}}"><i class="fa fa-trash"></i></a>
	</div>
</script>
{/block}
